package com.lee.init.service.impl;

import com.lee.init.entity.CustomerCreditRecord;
import com.lee.init.mapper.CustomerCreditRecordMapper;
import com.lee.init.service.ICustomerCreditRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author youzh
 */
@Service
public class CustomerCreditRecordServiceImpl implements ICustomerCreditRecordService {

    @Autowired
    private CustomerCreditRecordMapper recordMapper;

    @Override
    public int batchSave(List<CustomerCreditRecord> creditRecords) {
        int counts = recordMapper.batchSave(creditRecords);
        return counts;
    }
}
